<template>
    <framework
            :navData="navData"
            @changeView="changeView">
        <router-view slot="body"></router-view>
    </framework>
</template>

<script>
    import framework from '@modules/common/framework.vue';

    export default {
        name: "index",
        data () {
            return {
                navData: [
                    {
                        title: "课程信息",
                        id: "0",
                        children: [
                            {
                                title: "课程简介",
                                id: "0_0",
                                name: "courseInformationDescription"
                            },
                            {
                                title: "课程公告",
                                id: "0_1",
                                name: "courseInformationNotice"
                            },
                            {
                                title: "教学计划",
                                id: "0_2",
                                name: "courseInformationPlan"
                            },
                            {
                                title: "参考书目",
                                id: "0_3",
                                name: "courseInformationReference"
                            },
                            {
                                title: "考核方式",
                                id: "0_4",
                                name: "courseInformationEvaluation"
                            },
                            {
                                title: "课程资源",
                                id: "0_5",
                                name: "courseInformationResource"
                            }
                        ]
                    },{
                        title: "在线作业",
                        id: "1",
                        children: [
                            {
                                title: "当前作业",
                                id: "1_0",
                                name: "onlineHomeworkCurrent"
                            }
                        ]
                    },
                    // {
                    //     title: "互评作业",
                    //     id: "2",
                    //     children: [
                    //         {
                    //             title: "当前互评",
                    //             id: "2_0",
                    //             name: "evaluationHomeworkCurrent"
                    //         }
                    //     ]
                    // },
                    {
                        title: "查看成绩",
                        id: "2",
                        children: [
                            {
                                title: "查看成绩",
                                id: "2_0",
                                name: "scoreList"
                            }
                        ]
                    }
                ]
            }
        },
        components: {
            framework
        },
        methods: {
            changeView (name) {
                this.$router.push({
                    name: name
                });
            }
        }
    }
</script>

<style type="text/scss" lang="scss">

</style>